package com.fesine.ch01.lesson06;

/**
 * Created by Fesine on 2016/6/26.
 */
public class Run {



    public static void main(String[] args) throws InterruptedException {
        MyThread myThread = new MyThread();
        System.out.println("begin==" + myThread.isAlive());
        myThread.start();
        Thread.sleep(1000);//此行代码会影响end时线程是否执行结束
        System.out.println("end==" + myThread.isAlive());

    }
}
